package com.cadre.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cadre.common.utils.oldutil.PageUtils;
import com.cadre.common.utils.oldutil.Query;
import com.cadre.system.domain.officer.SysLogEntity;
import com.cadre.system.mapper.SysLogMapper;
import com.cadre.system.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("sysLogService")
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLogEntity> implements SysLogService {
    @Autowired
    private SysLogMapper sysLogMapper;

    @Override // com.tdqy.cadre.modular.system.service.SysLogService
    public PageUtils queryPage(Map<String, Object> params) {
        Page<SysLogEntity> page = new Query(params).getPage();
        return new PageUtils(page.setRecords(this.sysLogMapper.selectLists(page, params)));
    }

    @Override // com.tdqy.cadre.modular.system.service.SysLogService
    public Map<String, Object> selectMapByFLowid(String flowid, String set) {
        return this.sysLogMapper.selectMapByFLowid(flowid, set);
    }

    @Override // com.tdqy.cadre.modular.system.service.SysLogService
    public PageUtils selectList(Map<String, Object> map) {
        Page<SysLogEntity> page = new Query(map).getPage();
        return new PageUtils(page.setRecords(this.sysLogMapper.selectList(page, map)));
    }

    @Override // com.tdqy.cadre.modular.system.service.SysLogService
    public List<Map<String, Object>> getColumnInfo(String operationset) {
        return this.sysLogMapper.getColumnInfo(operationset);
    }

    @Override // com.tdqy.cadre.modular.system.service.SysLogService
    public Map<String, Object> selectMapByPersonid(String flowid, String set) {
        return this.sysLogMapper.selectMapByPersonid(flowid, set);
    }
}
